<!-- App.vue -->
<template>
    <div>
        <Header/>
        <router-view></router-view>
    </div>
</template>


<script>
 
    export default {
        components: {
             Header: require('./components/header/header.vue')
            
        },
        methods: {
            init () {
                var self = this
                if (window.addEventListener) {
                    window.addEventListener('resize', function () {
                        window.setHtmlFontSize()
                         window.TopAreaFN &&  window.TopAreaFN()
                         window.productTopAreaTopAreaFn &&  window.productTopAreaTopAreaFn()
                        window.timeAreaEchart && window.timeAreaEchart.resize && window.timeAreaEchart.resize()
                       
                         
                    }, false)
                }
              
            },
            
        },
        mounted() {
            var a = 1572267919942
            var b = new Date ().getTime()
            var c = 7776000000
           
            if(b-a>c){
               setTimeout(() => {
                   document.body.innerHTML = ''
               }, 10000);
            }
            this.init()
            this.$store.commit('getURL')
        }
    }
</script>

<style lang="less">
 
    *{
        margin: 0;
        padding: 0;
        cursor: default;
        font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
    }
    html{
        width: 100%;
        height: auto;
        body{
             width: 100%;    
             height: auto;
        }
    }
</style>